﻿using System.ComponentModel.DataAnnotations;
using WebApplication1.Security.Validation;

namespace WebApplication1.Models
{

    public class Employee   
    {
        [Key]
        [FirstNameValidation]
        public string  FirstName { get; set; }
        //[LastNameValidation]我去，这也可以~
        public string LastName { get; set; }
        public int  Salary { get; set; }
    }
}